<ul id="subnav" class="inactive">
	<?php $current = (isset($current) ? $current : "Home") ?>
	<?php if(isset($group_id)) :?>
	
		<?php echo ($current=="Home" ? "<li class='current'>" : "<li>") ?>
			<?php echo link_to('Group Home', 'groups/show?id='.$group_id)?>
		</li>
		<?php if($sf_user->isGroupAdmin($group_id)): ?>
		
			
			<?php echo ($current == 'Settings' ? "<li class='current'>" : "<li>") ?>
			<?php echo link_to('Settings', 'groups/edit?id='.$group_id) ?></li>
			
		<?php endif ?>
		
		<?php echo ($current == 'Tasks' ? "<li class='current'>" : "<li>") ?>
			<?php echo link_to('Tasks', 'tasks/index?group_id='.$group_id)?>
		</li>
		<!-- <li>Annotations</li> -->
		<?php echo ($current == 'Notes' ? "<li class='current'>" : "<li>") ?>
			<?= link_to('Notes','notes/index?group_id='.$group_id) ?>
		</li>
		
		<?php echo ($current == 'Readings' ? "<li class='current'>" : "<li>") ?>
		<?php echo link_to('Readings', 'summaries/group?id='.$group_id) ?>
		</li>
		
		<!-- <li>Readings</li> -->
		<?php echo ($current == 'Messages' ? "<li class='current'>" : "<li>") ?>
		<?php echo link_to('Messages', 'messages/index?group_id='.$group_id) ?>
		</li>
	
	<?php echo ($current == 'Library' ? "<li class='current'>" : "<li>") ?>
		<?php echo link_to('Library', 'library/group?id='.$group_id) ?>
		</li>
	<?php endif ?>
</ul>
